package com.hxw.schema.factory.complexFactory;

/**
 * Created by Think on 2018/5/4.
 */
public class Client {
    public static void main(String[] args) {
        IFactory factory = new VolunteerFactoye();
        LeiFeng leiFeng = factory.createLeiFeng();
        leiFeng.buyRice();
        leiFeng.sweep();
        leiFeng.wash();
    }
}
